import requests

url = "https://google.com"

try:
    response = requests.get(url, timeout=10)
    response.raise_for_status()  
    content = response.text  
    with open("website_content.html", "w", encoding="utf-8") as file:
        file.write(content)

    print("saved 'website_content.html'")
except requests.exceptions.RequestException as e:
    print("failed")
